using System.Collections;
using System.Collections.Generic;

using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Playables;
using UnityEngine.Timeline;

public class MoveBackPlayerPlayableAsset : PlayableAsset
{
    public ExposedReference<Transform> player;

    public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
    {
        var playable = ScriptPlayable<MoveBackPlayerPlayableBehaviour>.Create(graph);
        var movePlayerBehaviour = playable.GetBehaviour();
        movePlayerBehaviour.Initialize(player.Resolve(graph.GetResolver()));
        return playable;
    }
}
